package com.yc;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author LC
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="JwtRequest对象", description="用户登录表单")
public class JwtRequest implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "用户账号")
	@NotBlank(message = "用户名不能为空")
	private String username;

	@ApiModelProperty(value = "用户密码")
	@NotBlank(message = "密码不能为空")
	private String password;
}
